package cn.gson.school.entity.jiaoxue;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 教学模块--学习计划表 学习计划id；学生详情编号；计划内容；计划开始时间；结束时间；需要支持；完成情况；制定时间
 */
@Entity
@Table(name = "tb_jx_learning_plan")
public class LearnplanEntity {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "learn_plan_id")
	private Long learnplanId;

	@ManyToOne
	@JoinColumn(name = "studentindo_id")
	private StudentEntity student;
	/** 学生详情表外键id */

	@Column(name = "learn_plan_content")
	private String planContent;

	@Column(name = "learn_plan_time")
	//@JsonFormat(pattern = "yyyy-MM-dd")
	private String planStartTime;

	@Column(name = "learn_plan_week")
	private Integer week;

	//@JsonFormat(pattern = "yyyy-MM-dd")
	@Column(name = "end_time")
	private String endTime;

	@Column(name = "need_support")
	private String needSupport;

	private String completion;

	@Column(name = "make_time")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date makeTime;

	@Column(name = "is_delete")
	private Integer delete;

	public Integer getDelete() {
		return delete;
	}

	public void setDelete(Integer delete) {
		this.delete = delete;
	}

	public Long getLearnplanId() {
		return learnplanId;
	}

	public void setLearnplanId(Long learnplanId) {
		this.learnplanId = learnplanId;
	}

	public StudentEntity getStudent() {
		return student;
	}

	public void setStudent(StudentEntity student) {
		this.student = student;
	}

	public String getPlanContent() {
		return planContent;
	}

	public void setPlanContent(String planContent) {
		this.planContent = planContent;
	}

	public String getPlanStartTime() {
		return planStartTime;
	}

	public void setPlanStartTime(String planStartTime) {
		this.planStartTime = planStartTime;
	}

	public Integer getWeek() {
		return week;
	}

	public void setWeek(Integer week) {
		this.week = week;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getNeedSupport() {
		return needSupport;
	}

	public void setNeedSupport(String needSupport) {
		this.needSupport = needSupport;
	}

	public String getCompletion() {
		return completion;
	}

	public void setCompletion(String completion) {
		this.completion = completion;
	}

	public Date getMakeTime() {
		return makeTime;
	}

	public void setMakeTime(Date makeTime) {
		this.makeTime = makeTime;
	}

	@Override
	public String toString() {
		return "LearnplanEntity [learnplanId=" + learnplanId + ", student=" + student + ", planContent=" + planContent
				+ ", planStartTime=" + planStartTime + ", week=" + week + ", endTime=" + endTime + ", needSupport="
				+ needSupport + ", completion=" + completion + ", makeTime=" + makeTime + ", delete=" + delete + "]";
	}

}
